package com.liu.controller;

import com.liu.bean.OrderDetail;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StockController {

    @PutMapping("/stock")
    public String update(@RequestBody List<OrderDetail> list){
        System.out.println("更新商品库存："+list);
        return "ok";
    }


}
